<template>
	<view class="login">
		<input type="text" v-model="username" placeholder="请输入用户名" value="test" />
		<input type="password" v-model="password" placeholder="请输入密码" value="test"/>
		<button type="default" @click="Login">登录</button>
	</view>
</template>

<script>
	import { userlogin } from "../../common/api.js"
	export default {
		data() {
			return {
				username:"",
				password:""
			}
		},
		methods: {
			Login(){
				userlogin(this.username,this.password).then(res =>console.log(res.result.token))
			}
		}
	}
</script>

<style>

</style>
